package com.system.common;


public enum SortEnum {
	
	FOOD(1,"美食"),
	HOTEL(2,"酒店"),
	BAR(3,"KTV"),
	KTV(4,"酒吧"),
	HORSE(5,"马术"),
	YACHT(6,"游艇"),
	LUXCAR(7,"豪车"),
	PLANE(8,"飞机"),
	GOLF(9,"高尔夫"),
	PURCHASE(50,"尊购商品");

	private int code;
    private String value;
    
    SortEnum(int code,String value){
    	this.code = code;
    	this.value = value;
    }

    public String getValue() {
        return value;
    }

    public int getCode() {
        return code;
    }


    public static String getEnum(int code){
        for(SortEnum e : SortEnum.values()){
            if(e.getCode() == code){
                return e.value;
            }
        }
        throw new RuntimeException("么有找到对应的枚举");
    }
	


}
